﻿using System;
using System.Collections.Generic;
using System.Linq;
using Autodesk.Revit.DB;

namespace QuickModel.GeothermalPipeQuickModel
{
	internal class GetRevitProjectData
	{
		public static Dictionary<string, Element> GetAllLineType(Autodesk.Revit.DB.Document doc)
		{
			FilteredElementCollector filteredElementCollector = new FilteredElementCollector(doc);
			FilteredElementCollector filteredElementCollector2 = filteredElementCollector.OfClass(typeof(LinePatternElement));
			Dictionary<string, Element> dictionary = new Dictionary<string, Element>();
			List<Element> list = filteredElementCollector2.ToElements().ToList<Element>();
			foreach (Element element in list)
			{
				dictionary.Add(element.Name, element);
			}
			return dictionary;
		}

		public static List<string> LineWidth()
		{
			return new List<string>
			{
				"1",
				"2",
				"3",
				"4",
				"5",
				"6",
				"7",
				"8",
				"9",
				"10",
				"11",
				"12",
				"13",
				"14",
				"15",
				"16"
			};
		}
	}
}
